<%@page import="com.hospital.util.DbUtil"%>
<%@page import="java.util.Map"%>
<%@page import="com.hospital.model.UserInfo"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="images/main.css" rel="stylesheet" type="text/css" />
<link  href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/trim.js"></script>
<script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function sub() {
		var password = document.getElementById("password");
		if(trim(password.value).length == 0){
			alert("密码不能为空。");
			password.focus();
		}else{
			document.forms["form"].submit();
		}
	}
</script>
</head>
<body>
	<jsp:include page="right_top.jsp"></jsp:include>
	<!-- TOP START -->
	<div id="right_font">
		<img src="images/main_14.gif" /> 您现在所在的位置：首页 &rarr; 用户信息管理 &rarr; <span
			class="bfont">查看个人信息</span>
	</div>
	<!-- TOP END -->
	<hr >
	<form action="UserInfoServlet?method=modify" method="post" name="form" id="form">
	<%
		UserInfo doctor = (UserInfo)(session.getAttribute("userInfo")); 
		int id = doctor.getId();
		String sql = "select * from t_user_info where id = " + id;
		Map<String, Object> map  = (Map<String, Object>)DbUtil.find(sql).get(0);
	%>
		<table style="margin-top: 30px;">
			<tr height="30px;">
				<td><font color="#FF0000"></font>用户名：</td>
				<td><%=map.get("account")%></td>
				<td width="220px;"><span id="usermsg"></span></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000"></font>角&nbsp;&nbsp;色：</td>
				<td>药物基础信息管理人员<br></td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000"></font>性&nbsp;&nbsp;别：</td>
				<td>
					<%=map.get("sex")%>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000"></font>出生日期：</td>
				<td><%=map.get("birthday")%></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000"></font>地&nbsp;&nbsp;址：</td>
				<td><%=map.get("address")%></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td><font color="#FF0000"></font>电&nbsp;&nbsp;话：</td>
				<td><%=map.get("tel")%></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td>部&nbsp; 门：</td>
				<td><%=map.get("departmentName")%></td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td>工&nbsp; 资：</td>
				<td>
					<%if(map.get("money").equals("null")){%>
						<font color="red">请您联系主管部门为您设置工资数据</font>
					<%}else{ %>
						<font color="#3A6279"><%=map.get("money")%>元/月</font>
					<%} %>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr height="30px;">
				<td colspan="2" align="center">
					&nbsp;<input type="hidden" name="id" value="<%=id %>" /> 
				</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</form>
</body>
</html>